home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Extension Link Problem.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  997 b   |  [TEXT/ttxt]

  1. Subject:     Re: Extension Link Problem
  2. Sent:        6/7/96 9:40 AM
  3. Received:    6/7/96 9:51 AM
  4. From:        Mark Lanett, mlanett@meer.net
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. At 7:19 AM 6/7/96, Doyle Rhynard wrote:
  9. >Everything compiles without any problems. However, when I try to link the
  10. >client part, I keep gettin the link error:
  11. >           Link Error   : undefined 'ADI_TestExtClassData' (data)
  12. >           Referenced from 'CADISimPart::RunTest(Environment*)' in Part.cpp
  13.  
  14. You need to link against the shared library for that extension. You may
  15. want to make it a "weak" link (so your part still runs even if it's not
  16. installed). Before trying to use the client extension, make sure it's
  17. present:
  18.  
  19. Boolean HasADIExtension () {
  20.         return &ADI_TestExtClassData != 0;
  21. }
  22.  
  23. The Cyberdog samples implement subclasses of an extension (cyberdog API),
  24. as does ODF R1 (scripting).
  25.  
  26.  
  27. Mark Lanett, ODF
  28.  
  29.